<template>
  <!-- 应答明细信息查看原交易页面弹出框-->
  <el-dialog
    :title="title"
    center
    :visible.sync="open"
    width="1024px"
    :close-on-click-modal="false"
    @close="closeFn"
    append-to-body
  >
    <el-form ref="detailsForm" :model="formData" :rules="rules" label-width="170px" :disabled="true">
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="交易流水号：" prop="id">
            <el-input v-model="formData.id" placeholder="交易流水号" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="工作日期：" prop="workdate">
            <el-date-picker
              v-model="formData.workdate"
              type="date"
              value-format="yyyyMMdd"
              placeholder="选择日期"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="报文类型：" prop="pkgNo">
            <el-select v-model="formData.pkgNo" placeholder="请选择" style="width: 100%">
              <el-option
                v-for="dict in dictMap.PKG_TYPE_RECON"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="来往账标志：" prop="drct">
            <el-select v-model="formData.drct" placeholder="请选择" style="width: 100%">
              <el-option
                v-for="dict in dictMap.DRCTCODE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="查询类型：" prop="inqType">
            <el-select v-model="formData.inqType" placeholder="请选择" style="width: 100%">
              <el-option
                v-for="dict in dictMap.INQ_TYPE_314_QUERY"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="发起行行号：" prop="indirectSender">
            <el-input v-model="formData.indirectSender" placeholder="发起行行号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="发起行行名：" prop="indirectSenderName">
            <el-input v-model="formData.indirectSenderName" placeholder="发起行行名" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="接收行行号：" prop="indirectRecver">
            <el-input v-model="formData.indirectRecver" placeholder="接收行行号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="接收行行名：" prop="indirectRecverName">
            <el-input v-model="formData.indirectRecverName" placeholder="接收行行名" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="中心状态：" prop="procStatus">
            <el-select v-model="formData.procStatus" placeholder="请选择" style="width: 100%">
              <el-option
                v-for="dict in dictMap.PROCESSSTATUS"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="录入操作员：" prop="mdTlrno">
            <el-input v-model="formData.mdTlrno" placeholder="录入操作员" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="录入时间：" prop="mdTime">
            <el-date-picker
              v-model="formData.mdTime"
              type="date"
              value-format="yyyyMMdd"
              placeholder="选择时间"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="复核操作员：" prop="checkTlrno">
            <el-input v-model="formData.checkTlrno" placeholder="复核操作员" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="复核时间：" prop="checkTime">
            <el-date-picker
              v-model="formData.checkTime"
              type="date"
              value-format="yyyyMMdd"
              placeholder="选择时间"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="审核操作员：" prop="audTlrno">
            <el-input v-model="formData.audTlrno" placeholder="审核操作员" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="审核时间：" prop="audTime">
            <el-date-picker
              v-model="formData.audTime"
              type="date"
              value-format="yyyyMMdd"
              placeholder="选择时间"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="发起时间：" prop="sndTime">
            <el-date-picker
              v-model="formData.sndTime"
              type="date"
              value-format="yyyyMMdd"
              placeholder="选择时间"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="接收时间：" prop="rcvTime">
            <el-date-picker
              v-model="formData.rcvTime"
              type="date"
              value-format="yyyyMMdd"
              placeholder="选择时间"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="查询申请交易流水号：" prop="oriId">
            <el-input v-model="formData.oriId" placeholder="查询申请交易流水号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="查询申请报文类型：" prop="oriMsgType">
            <el-select v-model="formData.oriMsgType" placeholder="请选择" style="width: 100%">
              <el-option
                v-for="dict in dictMap.PKG_TYPE_HVPS_RECON"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="查询申请发起行行号：" prop="oriSender">
            <el-input v-model="formData.oriSender" placeholder="查询申请发起行行号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="查询申请发起行行名：" prop="oriSenderName">
            <el-input v-model="formData.oriSenderName" placeholder="查询申请发起行行名" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="原交易报文标识号：" prop="txnOriPkgId">
            <el-input v-model="formData.txnOriPkgId" placeholder="原交易报文标识号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="原交易明细标识号：" prop="txnOriDtlNo">
            <el-input v-model="formData.txnOriDtlNo" placeholder="原交易明细标识号" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="原交易报文类型：" prop="txnOriMsgType">
            <el-select v-model="formData.txnOriMsgType" placeholder="请选择" style="width: 100%">
              <el-option
                v-for="dict in dictMap.PKG_TYPE_RECON"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="原交易业务类型：" prop="txnOriBizCtgy">
            <el-select v-model="formData.txnOriBizCtgy" placeholder="请选择" style="width: 100%">
              <el-option
                v-for="dict in dictMap.BIZ_TYPE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="原交易发起行行号：" prop="txnOriSender">
            <el-input v-model="formData.txnOriSender" placeholder="原交易发起行行号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="原交易发起行行名：" prop="txnOriSenderName">
            <el-input v-model="formData.txnOriSenderName" placeholder="原交易发起行行名" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="交易货币：" prop="curcd">
            <el-input v-model="formData.curcd" placeholder="交易货币" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="交易金额" prop="amount">
            <ht-amount-input
              v-model="formData.amount"
              placeholder="交易金额"
              :disable=true
            ></ht-amount-input>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button type="primary" @click="closeFn">关闭</el-button>
    </div>
  </el-dialog>
</template>
<script>
import { log } from "util";
import HtAmountInput from "@/views/components/HtAmountInput";
export default {
  name: "oriView315",
  components: { HtAmountInput },
  props: {
    dictMap: {
      type: Object,
      default: () => {
        return {};
      },
    },
    formData: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      // 是否显示弹出层
      open: false,
      isLoading: false,
      rules: {},
      title:"",
    };
  },
  watch: {
    open(val) {
      if (val) {
      }
    },
  },
  mounted() {},
  methods: {
    // 表单重置
    reset() {
      this.resetForm("detailsForm");
      // this.$set(this, "form", {});
    },
    closeFn() {
      this.open = false;
      this.reset();
    },
    show(title) {
      this.title = title;
      this.open = true;
    },
  },
};
</script>
<style lang="scss" scoped>
.label-header-msg {
  font-weight: bold;
}

.form-card {
  margin-bottom: 10px;
}
</style>
